Script: --on mouseUp wdID,wdName,objNo,objName,objValue┬get wsGet(wdID,"list","SelectionText")┬if it¡empty then┬ if there is a cd it then┬ wsSet wdID,"value","Text",stripit(fld "balance" of cd it)┬ wsSet wdID,"value","Selection", "0,20"┬ end if┬else┬ wsSet wdID,"value","Text", ""┬end if┬--end mouseUp
ItemType: LBL
Rect: 8,21,52,37
Text: Value:
ItemType: TEXT
Rect: 51,18,151,40
Name: value
LockText: FALSE
Script: --on closeField wdID,wdName,objNo,objName,objValue┬get wsGet(wdID,"list","SelectionText")┬put it into cc┬if there is a cd cc then┬ get wsGet(wdID,"value","Text")┬ if it¡empty then┬ lock screen┬ set lockmessages to true┬ push cd┬ go cd cc┬ put stripit(it) into fld "balance"┬ send "updateImport" to this cd┬ wsSet wdID,"value","Text", ""┬ pop cd┬ unlock screen┬ end if┬end if┬--end closeField┬┬